package com.duomai.myapplication.adapter;

import android.util.Log;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.duomai.myapplication.R;
import com.example.admin.SQLite.Complaint;
import com.example.admin.SQLite.User;
import com.example.admin.SQLite.feiyong;
import com.example.admin.bean.PersonalBean;
import com.orhanobut.hawk.Hawk;

public class CostAdapter extends BaseQuickAdapter<feiyong, BaseViewHolder> {

    public CostAdapter() {
        super(R.layout.item_cost);
    }

    @Override
    protected void convert(BaseViewHolder helper, feiyong str) {
        User user = Hawk.get("user");
        String strs="社区名称："+user.UserAddress;
        String strs1="房屋住址："+str.feiyongShequ;
        PersonalBean bean = Hawk.get("PersonalBean" + user.id);
        String strs2="业主姓名："+bean.name;
        String strs3="费用类型："+str.feiyongType;
        String strs4="金额（￥）："+str.feiyongAmount;
        helper.setText(R.id.tvStatu, strs+"\n"+strs1+"\n"+strs2+"\n"+strs3+"\n"+strs4);
        Log.e("梵蒂冈梵蒂冈", "convert: "+str.toString() );
        helper.setText(R.id.tvPay,str.feiyongStatu);
        helper.addOnClickListener(R.id.tvPay);

    }

}